/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表
export const queryListForDealer = params => axios.post(`${SERVER.RETAIL}/salesReturn/queryListForDealer`, params);
// 详情
export const queryReturnById = params => axios.get(`${SERVER.RETAIL}/salesReturn/queryReturnById`, {
  params
});
// 确认
export const saveSalesReturn = params => axios.post(`${SERVER.RETAIL}/salesReturn/saveSalesReturn`, params);

// 入库 /salesReturn/stockIn
export const stockIn = params => axios.post(`${SERVER.RETAIL}/salesReturn/stockIn`, params);

export const getWarehouseList = (params) => axios.get(`${SERVER.RETAIL}/ttVsDeliveryOrder/getWarehouseList`, {
  params
})
